<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
import {list} from '@/api/list'
export default {
  data(){
    return{
      a:false
    }
  },
  watch:{
    a(newVaklue,old){
      console.log(newVaklue,'5555');
    }
  },
  created(){
    
    list().then(res=>{
      
      if(res){
        console.log(this.a);
      this.a=true
      }
    }).finally(res=>{
      console.log(this.a);
    })
  }
}
</script>
<style lang="less">

@import "@/assets/style/reset.css";
</style>
       